package d11_test02;

public class Test {
    public static void main(String[] args) {
        //目标: 有一个抽奖池,该抽奖池中存放了奖励的金额,该抽奖池中的奖项为
        // {10,5,20,50,100,200,500,800,2,80,300,700};
        //1、創建一个容器存储,奖金
        int[] jackpot = {10, 5, 20, 50, 100, 200, 500, 800, 2, 80, 300, 700};

        //2、创建两个线程,进行抽奖
        //2.1创建任务
        //注意这里要把,数组传输过去
        MyRunnable target = new MyRunnable(jackpot);
        
        //2.2将创建的任务交给,线程对象
//        Thread luckyDrawBox = new Thread(target,"");
        new Thread(target,"抽奖箱1").start();
        new Thread(target,"抽奖箱2").start();

    }
}
